package com.geovis.emergency.spd.entity.pc.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.geovis.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 应急预案指挥模块-值班排班表
 * </p>
 *
 * @author 曾德实
 * @since 2022-04-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("pc_duty")
@ApiModel(value = "PcDuty对象", description = "应急预案指挥模块-值班排班表")
public class PcDuty extends BaseEntity {

    @ApiModelProperty("演练id")
    private String pcDrillId;

    @ApiModelProperty("人员id")
    private String personId;

    @ApiModelProperty("人员Name")
    private String personName;

    @ApiModelProperty("岗位id")
    private String postId;

    @ApiModelProperty("岗位名称")
    private String postName;

    @ApiModelProperty("单元id")
    private String unitId;

    @ApiModelProperty("单元名称")
    private String unitName;

    @ApiModelProperty("分组id")
    private String groupId;

    @ApiModelProperty("分组")
    private String groupName;

    @ApiModelProperty("是否指挥编组")
    private String isGroup;

    @ApiModelProperty("人员类型（1-普通人员，2-单位负责人，3-组负责人）")
    private String userType;

    @ApiModelProperty("排序")
    private Integer idx;

    @ApiModelProperty("创建部门")
    @TableField(fill = FieldFill.INSERT,  updateStrategy = FieldStrategy.NEVER)
    private String createDept;

}
